import Vue from 'vue'
import VueRouter from 'vue-router'
// import Home from '../views/Home.vue'


Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect:'/home'

  },
  
  {
    path: '/home',
    name: 'Home',
    component: () => import('../views/home.vue')
  },
  {
    path: '/ming',
    name: 'Ming',
    component: () => import('../views/ming.vue')
  },
  {
    path: '/phone',
    name: 'Phone',
    component: () => import('../views/phone.vue')
  },
  {
    path: '/shop',
    name: 'Shop',
    component: () => import('../views/shop.vue')
  },
  {
    path: '/zhongxin',
    name: 'Zhongxin',
    component: () => import('../views/zhongxin.vue')
  },
  {
    path: '/details',
    name: 'Details',
    component: () => import('../views/details.vue')
  }
  
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
